/**
******************************************************************************
* file    readme.txt  
* Version V1.0.0
* date    30-January-2016
******************************************************************************
* Attention
*
* COPYRIGHT(c) 2016 STMicroelectronics
*
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
*        http://www.st.com/software_license_agreement_liberty_v2
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*   1. Redistributions of source code must retain the above copyright notice,
*      this list of conditions and the following disclaimer.
*   2. Redistributions in binary form must reproduce the above copyright notice,
*      this list of conditions and the following disclaimer in the documentation
*      and/or other materials provided with the distribution.
*   3. Neither the name of STMicroelectronics nor the names of its contributors
*      may be used to endorse or promote products derived from this software
*      without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************
*/


FP-SEC-BLENFC1 Application Description 

This firmware package includes Components Device Drivers, Board Support Package
and example application for the following STMicroelectronics elements:
- X-NUCLEO-IDB04A1/X-NUCLEO-IDB05A1 Bluetooth Low energy expansion boards
- X-NUCLEO-NFC01A1 Dynamic NFC tag expansion board based on M24SR
- NUCLEO-F401RE NUCLEO-L053R8 Nucleo boards

The Example application initizializes all the Components and Libraries.
Then at the beginning it writes one URI to M24SR NFC, and after pressing the user button,
it starts the Bluetooth stack creating one service that expones the Console BLE characteristic and 
writes on the M24SR NFC the information for making facility&Secure BLE pairing.
Moreover, On F401RE nucleo board, when there are not device connected with BLE, pressing 
the user button is possible to write on NFC alternatively:
- the BLE pairing informations
- one email that sends informations about the latest device that have tried the connection

Example application allows the user to control the initialization phase via UART.
Launch a terminal application and set the UART port to 115200 bps, 8 bit, No Parity,1 stop bit.


@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ For using secure connection with one Android device                     @
@ running Android Marshmallow (6.x version) it's necessary                @
@ to update the Firmware of X-NUCLEO-IDB05A1                              @
@ (please refer to X-CUBE-BLE1 package available on www.st.com)           @
@                                                                         @
@ It's not possible to use the X-NUCLEO-IDB04A1 with Android Marshmallow  @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


@par Hardware and Software environment

  - This example must be used with the related BlueMS Android/iOS application available on Play/itune store (V > 2.0)
    in order to read the sent information by Bluetooth Low Energy protocol
    

@par How to use it ? 

This package contains projects for 3 IDEs viz. IAR, Vision and System Workbench. 
In order to make the  program work, you must do the following:
 - WARNING: before opening the project with any toolchain be sure your folder
   installation path is not too in-depth since the toolchain may report errors
   after building.

For IAR:
 - Open IAR toolchain (this firmware has been successfully tested with
   Embedded Workbench V7.40.3).
 - Open one of the IAR project file EWARM\STM32F401RE-Nucleo\BLENFC.eww or EWARM\STM32L053R8-Nucleo\BLENFC.eww
 - Rebuild all files and load your image into target memory.
 - Run the example.

For Vision:
 - Open Vision V5.15.0 toolchain (this firmware has been 
   successfully tested with MDK-ARM Professional Version: 5.15.0).
 - Open one of the Vision project files MDK-ARM\STM32F401RE-Nucleo\Project.uvprojx or MDK-ARM\STM32L053R8-Nucleo\Project.uvprojx
 - Rebuild all files and load your image into target memory.
 - Run the example.
 
For System Workbench:
 - Open System Workbench for STM32 (this firmware has been successfully tested with System Workbench for STM32 Version 1.6.0.201512071631).
 - Set the default workspace proposed by the IDE (please be sure that there are not spaces in the workspace path).
 - Press "File" -> "Import" -> "Existing Projects into Workspace"; press "Browse" in the "Select root directory" and choose the path where the System
   Workbench project is located (it should be SW4STM32\STM32F401RE-Nucleo\ or SW4STM32\STM32L053R8-Nucleo\). 
 - Rebuild all files and load your image into target memory.
 - Run the example.

/******************* (C) COPYRIGHT 2016 STMicroelectronics *****END OF FILE****/